package com.czxy.dem01;

public class Test26 {

    public static void main(String[] args) {

        Ticket t = new Ticket(100);
        TicketThread td = new TicketThread(t);
        Thread c1 = new Thread(td,"1");
        Thread c2 = new Thread(td,"2");
        Thread c3 = new Thread(td,"3");
        c1.start();
        c2.start();
        c3.start();

    }
}
